package com.google.android.exoplayer2.metadata.id3;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import java.util.Arrays;
import o.anr;

public final class PrivFrame extends Id3Frame {
    public static final Creator<PrivFrame> CREATOR = new Creator<PrivFrame>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˏ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˊ(i);
        }

        public PrivFrame ˏ(Parcel parcel) {
            return new PrivFrame(parcel);
        }

        public PrivFrame[] ˊ(int i) {
            return new PrivFrame[i];
        }
    };
    public final String ˋ;
    public final byte[] ˎ;

    public PrivFrame(String str, byte[] bArr) {
        super("PRIV");
        this.ˋ = str;
        this.ˎ = bArr;
    }

    PrivFrame(Parcel parcel) {
        super("PRIV");
        this.ˋ = (String) anr.ˎ(parcel.readString());
        this.ˎ = (byte[]) anr.ˎ(parcel.createByteArray());
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        PrivFrame privFrame = (PrivFrame) obj;
        if (anr.ˎ(this.ˋ, privFrame.ˋ) && Arrays.equals(this.ˎ, privFrame.ˎ)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return (((this.ˋ != null ? this.ˋ.hashCode() : 0) + 527) * 31) + Arrays.hashCode(this.ˎ);
    }

    public String toString() {
        return this.ʻ + ": owner=" + this.ˋ;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.ˋ);
        parcel.writeByteArray(this.ˎ);
    }
}
